{template('../public/header.html')}

<!--网站设置-->
<div class="pad_10">
	<form id="info_form" action="{:u('setting/edit')}" method="post" enctype="multipart/form-data">
	<table width="100%" class="table_form">
        <tr>
            <th width="150">{:L('site_name')} :</th>
            <td><input type="text" name="setting[site_name]" class="input-text" size="50" value="{:siteCfg('site_name')}"/> <span class="gray">site_name</span></td>
        </tr>
        <tr>
            <th>网站网址 :</th>
            <td><input type="text" name="setting[site_url]" class="input-text" size="50" value="{:siteCfg('site_url')}"> <span class="gray">site_url</span></td>
        </tr>
        <tr>
            <th>站点邮箱 :</th>
            <td><input type="text" name="setting[site_email]" class="input-text" size="50" value="{:siteCfg('site_email')}"> <span class="gray">site_email</span></td>
        </tr>
        <tr>
            <th>{:L('site_icp')} :</th>
            <td><input type="text" name="setting[site_icp]" class="input-text" size="50" value="{:siteCfg('site_icp')}"> <span class="gray">site_icp</span></td>
        </tr>
        <tr>
            <th>头部meta信息 :</th>
            <td><textarea style="width: 500px;height: 120px;" name="setting[head_meta]">{:siteCfg('head_meta')}</textarea>&nbsp;&nbsp;<span class="gray">head_meta 可用于应用验证网站</span> </td>
        </tr>
        <tr>
            <th>{:L('statistics_code')} :</th>
            <td><textarea style="width: 500px;height: 80px;" name="setting[statistics_code]">{:siteCfg('statistics_code')}</textarea> <span class="gray">statistics_code</span></td>
        </tr>
    	<tr>
        	<th>{:L('site_status')} :</th>
        	<td>
            	<label><input type="radio" class="J_change_status" {if siteCfg('site_status')=1}checked="checked"{/if} value="1" name="setting[site_status]"> {:L('open')}</label> &nbsp;&nbsp;
                <label><input type="radio" class="J_change_status" {if siteCfg('site_status')=0}checked="checked"{/if} value="0" name="setting[site_status]"> {:L('close')}</label>
            </td>
    	</tr>
        <tr id="J_closed_reason" {if siteCfg('site_status')=1}class="hidden"{/if}>
        	<th>{:L('closed_reason')} :</th>
        	<td><textarea rows="4" cols="50" name="setting[closed_reason]" id="closed_reason">{:siteCfg('closed_reason')}</textarea></td>
    	</tr>
	</table>
	{template('../public/_submit.html')}
	</form>
</div>

{template('../public/footer.html')}
<script>
$(function(){
    $('.J_change_status').live('click', function(){
        if($(this).val() == '0'){
            $('#J_closed_reason').fadeIn();
        }else{
            $('#J_closed_reason').fadeOut();
        }
    });
});
</script>
</body>
</html>